package com.fxc.gtm.aac.work.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fxc.gtm.aac.work.api.bo.SysUserBo;
import com.fxc.gtm.aac.work.pojo.SysUser;
import com.fxc.gtm.aac.work.service.SysUserService;
import com.fxc.gtm.aac.work.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



/**
 * @author 21024097
 * @description 针对表【sys_user(用户信息表)】的数据库操作Service实现
 * @createDate 2024-10-13 09:59:18
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser>
        implements SysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    public SysUserBo getUserInfoById(Long id) {
        SysUser sysUser = sysUserMapper.selectById(id);
        SysUserBo sysUserBo = new SysUserBo();
        sysUserBo.setId(sysUser.getId());
        return sysUserBo;
    }
}




